<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<div id="text" v-if="show">这是一段文本</div>
			<button @click="handleTrigger">show</button>
		</div>
		<script src="js/vue2.5.js"></script>
		<script>
			var vm = new Vue({
				el:'#app',
				data:{
					show : false
				},
				methods:{
					handleTrigger:function(){
						this.show = true;
//						setTimeout(()=>{
//							var oText = document.getElementById('text').innerHTML;
//						    console.log(oText);
//						},300)
						this.$nextTick(()=>{
							var oText = document.getElementById('text').innerHTML;
						    console.log(oText);
						})
					}
				}
			})
		</script>
	</body>
</html>
